package com.seanliao.nav.common.domain.dto;

import com.seanliao.nav.common.domain.dto.valid.Add;
import com.seanliao.nav.common.domain.dto.valid.Edit;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * 快速跳转DTO
 */
@Data
public class QuickJumpDTO {

    /* 主键 */
    @NotNull(groups = Edit.class, message = "id不能为空")
    private Long id;

    /* 项目名称 */
    @NotBlank(groups = Add.class, message = "项目名称不能为空")
    private String name;

    /* url */
    @NotBlank(groups = Add.class, message = "URL不能为空")
    private String url;

    /* 标签 */
    private List<String> tagList;

}
